package com.hotacorp.opencloud.common.resourcecommon.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.context.annotation.Import;

import com.hotacorp.opencloud.common.resourcecommon.config.OpenCloudResourceServerConfiguration;

/**
 * 如果服务提供的资源需要认证、授权时，使用@EnableOpenCloudResourceServer打开资源服务器功能
 * @author lwg
 *
 */
@Documented
@Inherited
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Import({OpenCloudResourceServerConfiguration.class})
public @interface EnableOpenCloudResourceServer {

}
